package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quwan.entity.TMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author laozhang
 * @date 2021/9/25 11:33
 */
public interface TMenuMapper extends BaseMapper<TMenu> {
    //获取菜单
    List<TMenu> selectMenuListByRoleId(@Param("roleId") Integer roleId);
    //获取菜单——角色权限设置使用
    List<Map<String,Object>> getCheckedMenuListByRoleId(@Param("roleId") Integer roleId);
}
